<template>
  <div id="app">
    <keep-alive>
      <!-- 需要缓存的视图组件 -->
      <router-view v-if="!$route.meta.isKeepAlive"/>
    </keep-alive>
    <!-- 不需要缓存的视图组件 -->
    <router-view v-if="$route.meta.isKeepAlive"/>
    <Footer v-show="$route.meta.showFooter"/>
  </div>
</template>

<script>
import Footer from './components/Footer/Footer'

export default {
  name: 'App',
  components: {
    Footer
  }
}
</script>

<style lang="less">
#app {
  width: 100%;
  height: 100%;
}
</style>

